package main

import (
	"./peer"
	"os"
	"strconv"
)

func main() {
	//接受命令行参数
	peerID := os.Args[1]
	//string转int64
	nodeID, _ := strconv.ParseInt(peerID, 10, 64)
	//创建服务
	server := peer.NewServer(nodeID)
	//
	server.Start()
}
